#include "Sever.hpp"
#include "Route.hpp"
#include <memory>
#include <functional>

int main()
{
    uint16_t port = 8888;
    //std::string ip = "127.0.0.1";
    Scream();

    Route route;
    func_t1 func = std::bind(&Route::Forward, &route, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3);
    UdpServer sver(func, port);

    sver.InitServer();
    sver.Start();
    
    return 0;
}